<template>
  <div>
    {{ '教师巡查记录表' }}
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="date" label="Date" width="180" />
      <el-table-column prop="name" label="Name" width="180" />
      <el-table-column prop="address" label="Address" />
  </el-table>
  </div>
</template>

<script setup lang="ts" name="findList">
import { onMounted } from 'vue';
import { tableList } from '@/api/findList';
const tableData = [
  {
    date: '2016-05-03',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
]
const featchTableList = (): void => {
  tableList().then((res: any) => {
    console.log(res);
    
  })
}
/* 生命周期钩子 */
onMounted(() => {
  featchTableList()
})
</script>

<style lang="scss" scoped>

</style>